package demo.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import demo.entity.Articles;

public interface ArticlesMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Articles record);

    int insertSelective(Articles record);

    Articles selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Articles record);

    int updateByPrimaryKey(Articles record);
    
    List<Articles> findByArticles(Articles articles,@Param("pageNo")Integer pageNo,@Param("pageSize")Integer pageSize);
    
    int updateTotalById(@Param("id")Integer id,@Param("total")Integer total);
}